package com.wz.jiangsu.main;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @program: wz
 * @author: wangzhou
 * @create: 2024-10-28 09:46
 * @description:
 **/
public class TestJoin {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
//        list.add("syslog");
//        list.add("http");
//        list.add("https");
        String collect = list.stream().collect(Collectors.joining(","));
        System.out.println(">>>>" + collect);
    }
}
